package com.sofly.service.impl.group3;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sofly.dao.group3.IStockManageDao;
import com.sofly.entity.StockManage;
import com.sofly.service.group3.IStockManageService;
@Service
public class IStockManageServiceImpl implements IStockManageService {
    
	@Autowired
	private IStockManageDao stockManageDao;
	@Override
	public int addStock(StockManage stockManage) {
		// TODO Auto-generated method stub
		return stockManageDao.insertStock(stockManage);
	}

	@Override
	public List<StockManage> getStockManageList(int page, int size) {
		// TODO Auto-generated method stub
		return stockManageDao.selectStockManageList(page, size);
	}

	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return stockManageDao.selectCount();
	}

	@Override
	public StockManage getStockById(String productId) {
		// TODO Auto-generated method stub
		return stockManageDao.selectStockById(productId);
	}

}
